package cn.itcast.service.cargo;

import cn.itcast.domain.cargo.ShippigOrder;
import cn.itcast.domain.cargo.ShippigOrderExample;
import cn.itcast.vo.ShippingOrderVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 委托单业务层接口
 */
public interface ShippingOrderService{

    //分页查询
    PageInfo findAll(int page, int size, ShippigOrderExample example);

    //保存
    void save(ShippigOrder shippingOrder);

    //删除
    void delete(String id);

    //修改
    void update(ShippigOrder shippingOrder);

    //根据id查询
    ShippigOrder findById(String id);

    //查询ShippingOrderVo
    ShippingOrderVo findVoById(String id);

    //查询所有委托信息
    public List<ShippigOrder> findAll(ShippigOrderExample example);

}
